home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / AMIGA / AMICUS / AMICUS05.ADF / IFF / ftext < prev    next >
Text File  |  1986-04-20  |  3KB  |  75 lines

  1.  
  2. "FTXT" IFF Formatted Text
  3.  
  4. Date:     November 15, 1985
  5. From:     Steve Shaw and Jerry Morrison, Electronic Arts and 
  6.      Bob "Kodiak" Burns, Commodore-Amiga
  7. Status:   Draft 2.6
  8.  
  9. DRAFT                 DRAFT             DRAFT               
  10. DRAFT                 DRAFT        DRAFT     
  11.  
  12. 1. Introduction
  13.  
  14. This memo is the IFF supplement for FORM FTXT. An FTXT is an IFF "data 
  15. section" or "FORM type" which can be an IFF file or a part of one containing 
  16. a stream of text plus optional formatting information."EA IFF 85" 
  17. is Electronic Arts' standard for interchange format files. (See the 
  18. IFF reference.)
  19.  
  20. An FTXT is an archival and interchange representation designed for 
  21. three uses. The simplest use is for a "console device" or "glass teletype" 
  22. (the minimal 2-D text layout means): a stream of "graphic" ("printable") 
  23. characters plus positioning characters "space" ("SP") and line terminator 
  24. ("LF"). This is not intended for cursor movements on a screen although 
  25. it does not conflict with standard cursor-moving characters. The second 
  26. use is text that has explicit formatting information (or "looks") 
  27. such as font family and size, typeface, etc. The third use is as the 
  28. lowest layer of a structured document that also has "inherited" styles 
  29. to implicitly control character looks. For that use, FORMs FTXT would 
  30. be embedded within a future document FORM type. The beauty of FTXT 
  31. is that these three uses are interchangeable, that is, a program written 
  32. for one purpose can read and write the others' files. So a word processor 
  33. does not have to write a separate plain text file to communicate with 
  34. other programs.
  35.  
  36. Text is stored in one or more "CHRS" chunks inside an FTXT. Each CHRS 
  37. contains a stream of 8-bit text compatible with ISO and ANSI data 
  38. interchange standards. FTXT uses just the central character set from 
  39. the ISO/ANSI standards. (These two standards are henceforth called 
  40. "ISO/ANSI" as in "see the ISO/ANSI reference".)
  41.  
  42. Since it's possible to extract just the text portions from future 
  43. document FORM types, programs can exchange data without having to 
  44. save both plain text and formatted text representations.
  45.  
  46. Character looks are stored as embedded control sequences within CHRS 
  47. chunks. This document specifies which class of control sequences to 
  48. use: the CSI group. This document does not yet specify their meanings, 
  49. e.g. which one means "turn on italic face". Consult ISO/ANSI.
  50.  
  51. Section 2 defines the chunk types character stream "CHRS" and font 
  52. specifier "FONS". These are the "standard" chunks. Specialized chunks 
  53. for private or future needs can be added later. Section 3 outlines 
  54. an FTXT reader program that strips a document down to plain unformatted 
  55. text. Appendix A is a code table for the 8-bit ISO/ANSI character 
  56. set used here. Appendix B is an example FTXT shown as a box diagram. 
  57. Appendix C is a racetrack diagram of the syntax of ISO/ANSI control 
  58. sequences.
  59.  
  60.  
  61. Reference:
  62.  
  63. Amiga[tm] is a trademark of Commodore-Amiga, Inc.
  64.  
  65. Electronic Arts[tm] is a trademark of Electronic Arts.
  66.  
  67. IFF: "EA IFF 85" Standard for Interchange Format Files describes the 
  68. underlying conventions for all IFF files.
  69.  
  70. ISO/ANSI: ISO/DIS 6429.2 and ANSI X3.64-1979. International Organization 
  71. for Standardization (ISO) and American National Standards Institute 
  72. (ANSI) data-interchange standards. The relevant parts of these two 
  73. standards documents are identical. ISO standard 2022 is also relevant.
  74.  
  75.